package com.tebiecloud.common.model;

import lombok.Data;

import java.io.Serializable;
import java.util.Map;

/**
 * 响应结果
 * @Author: tebie
 * @Date: 2019-07-18 12:00
 */
@Data
public class ResultBody<T> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 响应编码
     */
    private int code = 0;

    /**
     * 提示消息
     */
    private String msg;

    /**
     * 请求路径
     */
    private String path;

    /**
     * 响应数据
     */
    private T data;

    /**
     * http状态码
     */
    private int httpStatus;

    /**
     * 附加数据
     */
    private Map<String, Object> extra;

    /**
     * 响应时间
     */
    private long timestamp = System.currentTimeMillis();

}
